<template>
  <div class="header">
    <div class="header-left">
      <span>&#xe624;</span>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe632;</span>
      <span>请输入关键词</span>
    </div>
    <div class="header-right">
      <router-link to="/city">
        <span>{{this.city}}</span>
        <span class="iconfont">&#xe62d;</span>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Header',
  props: {
    city: {
      type: String
    }
  },
  data () {
    return {
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '~@/assets/css/public.styl'
.header
  position relative
  background $bgColor
  height 0.86rem
  padding 0 1.2rem 0 .6rem
  .header-left
    width .6rem
    line-height .86rem
    text-align center
    position absolute
    left 0
    top 0
    span
      font-family iconfont
      font-size 0.3rem
      color #fff
      font-weight bold
  .header-input
    color #757575
    padding-left .1rem
    line-height .6rem
    position relative
    top .11rem
    background #fff
    border-radius .06rem
    height 0.6rem
      span
        vertical-align bottom
  .header-right
    position absolute
    right 0
    top 0
    width 1.2rem
    height .86rem
    line-height .86rem
    text-align center
    color #fff
    span
      font-size 0.2rem
      color #fff
</style>
